import request from '@/utils/request'

export default  {


        getList(current, limit, teacherSearch){

            return request({
                url:`/eduservice/teacher/pageTeacherCondition/${current}/${limit}`,
                method:'post',
                data: teacherSearch

            })
        },

        deleteTeacherId(id){


            return request({
                url:`/eduservice/teacher/${id}`,
                method:'delete',
                
            })
        },

        save(teacher) {
        
            return request({
               
                url:`/eduservice/teacher/addTeacher`,
         
                method: 'post',
       
                data: teacher
       
            })
         
        },

        
        getById(id) {
    
            return request({
    
                url: `/eduservice/teacher/getTeacher/${id}`,
        
                method: 'get'
        
            })
    
        },
        
        updateTeacher(teacher) {
  
            return request({
    
                url: `/eduservice/teacher/updateTeacher`,
        
                method: 'post',
    
                data: teacher
        
            })
        
        }
 
}

 

 
